% SPDX-License-Identifier: GPL-3.0-or-later OR CC-BY-SA-4.0
\documentclass{memoir}

% ------------------------------
% Unknown commands/env for po4a
% ------------------------------
% po4a: environment Verbatim
% po4a: verbatim environment Verbatim
% po4a: environment minted []
% po4a: environment listing []
% po4a: command -hyperref []{_}
% po4a: command +hypertarget {}{_}
% po4a: command -href {}{_}
% po4a: command -url {}
% po4a: command -pagecolor {}
% po4a: command *colorbox {}{_}

\usepackage[T1]{fontenc}
\usepackage{mathpazo} % Palatino
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{mdframed}
\usepackage[outputdir=.]{minted}
\usepackage{hyperref}
\usepackage[all]{hypcap}

% po4a: command hypersetup {}
\hypersetup{
    unicode=true,
    colorlinks=true
}

% Add numbering for subsubsection
\setcounter{tocdepth}{3}
\setcounter{secnumdepth}{3}

% -------------------
% Alert environments
% -------------------

% po4a: environment amalert []{}
% po4a: environment mdframed []{_}
\newenvironment{amalert}[1]
{\mdframed[linecolor={#1},backgroundcolor=white,linewidth=3pt,topline=false,rightline=false,bottomline=false]}
{\endmdframed}

% po4a: environment tip [_]
\newenvironment{tip}[1]
{%
    \amalert{black}
    \noindent
    \textbf{\textit{#1.}}
    }%
    {
    \endamalert
}

% po4a: environment warning [_]
\newenvironment{warning}[1]
{
    \amalert{Dandelion}
    \noindent
    \textbf{\textit{#1.}}
    }%
    {
    \endamalert
}

% po4a: environment danger [_]
\newenvironment{danger}[1]
{
    \amalert{BrickRed}
    \noindent
    \textbf{\textit{#1.}}
    }%
    {
    \endamalert
}

% --------------------
% Reference overrides (useful for localization)
% --------------------
\newcommand{\listingrefname}{Listing}
% po4a: command Lref {_}
\newcommand{\Lref}[1]{\listingrefname~\ref{#1}}

% ----------------------
% See also environments
% ----------------------
% po4a: command amseealsoinline {_}
\newcommand{\seealsoinline}[1]{\noindent\textit{See also: {#1}}}
% po4a: environment amseealso
\newenvironment{amseealso}{\itshape See also: \itemize}{\enditemize}

% -------------------
% Colours used in AM
% -------------------
\definecolor{AMDarkRed}{HTML}{790D0D}
\definecolor{AMLightRed}{HTML}{FF8A80}
\definecolor{AMVeryDarkRed}{HTML}{4F1C14}
\definecolor{AMVividOrange}{HTML}{FF8017}
\definecolor{AMVeryDarkOrange}{HTML}{FF8017}
\definecolor{AMSoftMagenta}{HTML}{EA80FC}
\definecolor{AMVeryDarkViolet}{HTML}{431C5D}
\definecolor{AMLightGreyishOrange}{HTML}{FCEED1}
\definecolor{AMDarkBlue}{HTML}{091F36}
\definecolor{AMOrange}{HTML}{E05915}
\definecolor{AMDarkCyan}{HTML}{09868B}

% META
\title{App Manager}
\author{Muntashir Al-Islam}

\begin{document}
    \input{titlepage.tex}
    \ifdefined\HCode
        % Don't display table of contents for tex4ht
    \else
        \tableofcontents
    \fi
    \input{intro/main.tex}
    \input{pages/main.tex}
    \input{guide/main.tex}
    \input{faq/main.tex}
    \input{appendices/main.tex}
\end{document}
